//
//  WSJUser.m
//  WSJBaseProject
//
//  Created by wsj2015 on 2016/12/2.
//  Copyright © 2016年 wsj2015. All rights reserved.
//

#import "WSJUserTool.h"

@interface WSJUserTool ()
@property (nonatomic,  strong) WSJUserModel *user;

@end


@implementation WSJUserTool


static WSJUserTool *userTool = nil;
+ (instancetype)shareUserTool{
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        userTool = [WSJUserTool new];
        
    });
    return userTool;
   
}

- (void)creatOrUpdateUser:(NSDictionary *)user{
    
    self.user = [WSJUserModel mj_objectWithKeyValues:user];
    
}

- (WSJUserModel *)getUser{
    return  self.user;
}


@end
